/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tda_tipoGasolinaDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression tga_id;
	public final IntegerExpression tga_octanage;
	public final StringExpression tga_nombre;
	
	public Tda_tipoGasolinaDetachedCriteria() {
		super(orm.Tda_tipoGasolina.class, orm.Tda_tipoGasolinaCriteria.class);
		tga_id = new IntegerExpression("tga_id", this.getDetachedCriteria());
		tga_octanage = new IntegerExpression("tga_octanage", this.getDetachedCriteria());
		tga_nombre = new StringExpression("tga_nombre", this.getDetachedCriteria());
	}
	
	public Tda_tipoGasolinaDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Tda_tipoGasolinaCriteria.class);
		tga_id = new IntegerExpression("tga_id", this.getDetachedCriteria());
		tga_octanage = new IntegerExpression("tga_octanage", this.getDetachedCriteria());
		tga_nombre = new StringExpression("tga_nombre", this.getDetachedCriteria());
	}
	
	public Tdp_precioDetachedCriteria createTdp_preciopreCriteria() {
		return new Tdp_precioDetachedCriteria(createCriteria("tdp_preciopre"));
	}
	
	public Tda_tipoGasolina uniqueTda_tipoGasolina(PersistentSession session) {
		return (Tda_tipoGasolina) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tda_tipoGasolina[] listTda_tipoGasolina(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tda_tipoGasolina[]) list.toArray(new Tda_tipoGasolina[list.size()]);
	}
}

